version: '3.8'

services:
  registry:
    image: registry:2
    deploy:
      placement:
        constraints:
          - "node.labels.top.boticord.type == storage-node"
    volumes:
      - registry:/var/lib/registry
    ports:
      - "127.0.0.1:5000:5000"

volumes:
  registry:
